import _thread
import time
import urllib.request


def tender(postData,delay):
	url = "http://172.16.40.70:8008/ajax/borrows_tf/tender"
	data = urllib.parse.urlencode(postData).encode(encoding='UTF8')
	response = urllib.request.urlopen(url,data)
	print(response)

try:
	_thread.start_new_thread(tender,({"action":"ed6495f7e3acf7e2658bed82c1bc4d7b","transfer_id":"38","card_type":1,"pwd":"123456","user_id":"2018020634","sort":1},1))
	_thread.start_new_thread(tender,({"action":"ed6495f7e3acf7e2658bed82c1bc4d7b","transfer_id":"38","card_type":1,"pwd":"123456","user_id":"2018020639","sort":1},1))
	_thread.start_new_thread(tender,({"action":"ed6495f7e3acf7e2658bed82c1bc4d7b","transfer_id":"38","card_type":1,"pwd":"123456","user_id":"2018020638","sort":1},1))
except:
	print("Error: 无法启动线程")

while 1:
	pass